package com.miku.blog.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author shkstart
 * @create ${}YEAR-05-25 21:23
 */
@ConfigurationProperties(prefix = "http-client")
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HttpClientProperties {

    public Integer maxTotal;// 最大连接

    public Integer defaultMaxPerRoute;// 每个host的最大连接

    public Integer connectTimeout;// 连接超时时间

    public Integer connectionRequestTimeout;// 请求超时时间

    public Integer socketTimeout;// 响应超时时间

}
